﻿using System;
using Ivory;

namespace X13
{
    public class X13FrameworkError : Exception
    {
        public X13FrameworkError(DefinedError error)
            : base(error.Message)
        {

        }
    }

    public static partial class Errors
    {
        public static DefinedError NoGameWorld { get { return new DefinedError(20, "No Game World has been Defined", null); } }
        public static DefinedError NoGameCamera { get { return new DefinedError(21, "No Game Camera has been Defined", null); } }
        public static DefinedError NoGlobalDebugDrawer { get { return new DefinedError(22, "No Global Debug Render has been Defined", null); } }

        public static DefinedError NoGameFileSpecified { get { return new DefinedError(23, "No Level File has been Specified", null); } }
        public static DefinedError LoggedInPlayerNotSet { get { return new DefinedError(24, "Invalid use of Logged in Player, attempting to retreive data, but no data exists", null); } }
    }
}
